//+------------------------------------------------------------------+
//|                                                   TestTrader.mq5 |
//|                        Copyright 2018, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+

#include "AppRemoteTrader.mqh"
#include "AppRateCollector.mqh"

AppRemoteTrader app;
// AppRateCollector app;


//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit(void)
{
     EventSetTimer(60);
     app.OnInit();

//--- ok
   return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick(void)
{
//---
    app.OnTick();
//---
}
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
  app.OnDeinit();
}
//+------------------------------------------------------------------+
